home *** CD-ROM | disk | FTP | other *** search
- G4C
- WinBig 0 0 0 0 ''
- Wintype 00001000
- Screen Nosferatu
-
- ;Max GadId nr. = 29
-
-
- xOnLoad
- CD Nosferatu:
- Workbench Close
- MakeScreen Nosferatu 640/500/6/0x8004 ""
- LoadImage Ram:MiniGreier/BLK Black NOREMAP
- Info Image Black
- Palette set Black Nosferatu
- LoadImage Nosferatu:Greier/Main RPic NOREMAP
- ;Info Image RPic
- ;Palette set RPic Nosferatu
- MoveScreen #Nosferatu $*NosferatuBredde 0
- WinBackGround image RPic 0
- LoadImage Ram:MiniGreier/PlayLys PlayLight NOREMAP
- LoadImage Ram:MiniGreier/ErrPic1 PicErr1 NOREMAP
- LoadImage Ram:MiniGreier/ErrPic2 PicErr2 NOREMAP
- LoadImage Ram:MiniGreier/OnLys LightOn NOREMAP
- LoadImage Ram:MiniGreier/OnLys2 LightOn2 NOREMAP
- LoadImage Ram:MiniGreier/BLK SmallPic2 NOREMAP ;Husk BLK
- LoadImage Ram:MiniGreier/Peker NosPointer NOREMAP ;---------
- RUN 'Nosferatu:Zet/FKey CX_POPUP=NO >nil:'
-
- PictureSet = 1
- SSTime = 10
- Playing = 0
- PicNum = 0
- TopNum = 1
- Delay = 1
- Loop = 0
- PPloop = ""
- ;PicDir = Nosferatu:P1/
- PicDir = $*NosferatuBig1 ;......
- ;PicDirMini = Nosferatu:P1m/
- PicDirMini = $*NosferatuSmall1
- MAXPicNum = 21 ; Maximum LV
- MAXTopNum = 22 ; Maximum Top
- Setgad #This 5 HIDE ;ListView
- SetGad #This 14 HIDE ;PlayLys
- SetGad #This 15 HIDE ;PlayLys
- SetGad #This 29 HIDE ;Slå Av LOOP
- SetGad #This 28 HIDE ;Pictureset2 OFF
- GuiOpen Nosferatu
- SETPOINTER #This #NosPointer
- Info Image RPic
- Palette set RPic Nosferatu
-
- LVUse #This 5
- LVGo #1
- PicTitle = $$LV.REC
- CutVar PicTitle CUT CHAR 3 PicName
- Update #This 7 $PicTitle ;Første
- LVUse #This 5
- LVGo #0
- PicTitle = $$LV.REC
- CutVar PicTitle CUT CHAR 3 PicName
- PicAll = $PicDir
- AppVar PicAll $PicName
- PicAllMini = $PicDirMini
- AppVar PicAllMini $PicName
- loadimage $PicAllMini SmallPic2 NOREMAP
- ChangeImage Nosferatu 10 -1 -1 SmallPic2
- Update #This 8 $PicTitle
- Update #This 6 $SSTime
- Update #This 12 1 ; First Picture
- Update #This 13 $MAXTopNum ; MAX Pictures Top
-
- If $$MEM.CHIP > 400000
- SetGad #This 14 SHOW ;PlayLys
- PartRedraw #This 100 377 13 12
- RUN 'Nosferatu:Zet/OMP Nosferatu:Greier/DizzyFunk Quit >nil:'
- Playing = 1
- EndIf
- MusFile = 1
- INFO GUI Nosferatu
-
- image 269 363 Black ; Senter ?
- gadid 10
-
-
- xOnRMB
- Gosub #This ViewPic
-
-
-
- xOnQuit
- RUN 'PPshow >nil: Nosferatu:Greier/BLK2 nomouse time 25'
- If $Playing > 0
- RUN 'Nosferatu:Zet/OMP Quit'
- EndIf
- Delay 50
- RUN 'Nosferatu:Zet/OMP >nil: Nosferatu:Greier/Intro'
- CLI 'PPshow >nil: Nosferatu:Greier/Watching Nosferatu:Greier/Title nomouse time 8'
- RUN 'PPshow >nil: Nosferatu:Greier/Credits nomouse time 15'
-
- SETPOINTER #This Default
- GuiClose #This
- KillScreen Nosferatu
- freeimage RPic
- freeimage SmallPic2
- freeimage PlayLight
- freeimage Black
- freeimage PicErr1
- freeimage PicErr2
- freeimage LightOn
- freeimage LightOn2
- freeimage NosPointer
- DelVar *NosferatuBig1
- DelVar *NosferatuBig2
- DelVar *NosferatuSmall1
- DelVar *NosferatuSmall2
- DelVar *NosferatuBredde
- CLI 'Delete >nil: Ram:MiniGreier ALL'
- IfExists DIRECTORY Ram:NosP1m
- CLI 'Delete >nil: Ram:NosP1m ALL'
- EndIf
- IfExists DIRECTORY Ram:NosP2m
- CLI 'Delete >nil: Ram:NosP2m ALL'
- EndIf
- IfExists DIRECTORY Ram:NosP1
- CLI 'Delete >nil: Ram:NosP1 ALL'
- EndIf
- IfExists DIRECTORY Ram:NosP2
- CLI 'Delete >nil: Ram:NosP2 ALL'
- EndIf
- Delete Env:PPresult
- Delete Ram:Plist1
- Delete Ram:Plist2
- Delete Env:MusResult1
- Delete Env:MusResult2
-
- CLI 'Status Command Nosferatu:Zet/FKey >Env:.Knull'
- CLI 'BREAK $.Knull >nil:'
-
- Workbench Open
- If $..FKeyCommand > 0
- CLI 'RUN >nil: $..FKeyCommand CX_POPUP=NO'
- EndIf
- Delete Env:FKeyCommand
- Delete Env:.Knull
- Delay 1000
-
- CLI 'Nosferatu:Zet/OMP Quit'
- CLI 'resident PPshow Remove' ;SISTE !!!
- CLI 'Assign >nil: Libs: Nosferatu:Libs REMOVE'
- CLI 'Assign >nil: Fonts: Nosferatu:Fonts REMOVE'
- CLI 'Assign >nil: Nosferatu: REMOVE'
- ;Delay 50
- ;RUN 'Gui T:FinalNosQuit'
-
- xOnKey R ; - Remap colours of screen -
- Info Image RPic
- Palette set RPic Nosferatu
-
-
- XAREA 37 20 100 24 COMP ; - QUIT NOSFERATU -
- GuiQuit #This
- ;------------
-
-
- XAREA 503 20 45 24 COMP ; - HELP -
- GadKey H
- CLI 'PPshow >nil: Nosferatu:Greier/NosHelp1 Nosferatu:Greier/NosHelp2 NoMouse'
-
- XAREA 552 20 51 24 COMP ; - CREDITS -
- GadKey C
- CLI 'PPshow >Env:PPresult Nosferatu:Greier/Credits NoMouse'
-
-
- Image 357 26 LightOn
- gadid 26
- Image 357 56 LightOn
- gadid 28
- XAREA 264 20 112 24 COMP ; - Pics1 -
- Gosub #This PicturesOne
- XAREA 264 50 112 24 COMP ; - Pics2 -
- Gosub #This PicturesTwo
-
-
- xListView 400 125 150 100 "" PicName Ram:Plist1 0 TXT
- GADID 5
-
- xTextBox 287 280 27 18 "" "" ; - Current PicNum -
- Gadid 12
- ATTR TBSTYLE 3/1/PLAIN/CENTER
- ATTR TBOX 0/0/0/PLAIN/NONE/IN
- GadFont P0T-Prop.font 11 000
-
- xTextBox 326 280 27 18 "" "" ; - Max PicNum -
- Gadid 13
- ATTR TBSTYLE 3/1/PLAIN/CENTER
- ATTR TBOX 0/0/0/PLAIN/NONE/IN
- GadFont P0T-Prop.font 11 000
-
-
-
-
-
- xTextBox 46 312 168 18 "" "" ; - Venstre Pic Navn -
- Gadid 7
- ATTR TBSTYLE 3/1/PLAIN/CENTER
- ATTR TBOX 0/0/0/PLAIN/NONE/IN
- GadFont P0T-Prop.font 11 000
-
- xTextBox 236 312 168 18 "" "" ; - Midtre Pic Navn -
- Gadid 8
- ATTR TBSTYLE 3/1/PLAIN/CENTER
- ATTR TBOX 0/0/0/PLAIN/NONE/IN
- GadFont P0T-Prop.font 11 000
-
- xTextBox 426 312 168 18 "" "" ; - Høyre Pic Navn -
- Gadid 9
- ATTR TBSTYLE 3/1/PLAIN/CENTER
- ATTR TBOX 0/0/0/PLAIN/NONE/IN
- GadFont P0T-Prop.font 11 000
-
-
-
- ;------------
- XAREA 157 379 82 68 COMP ; - Prev Pic -
- GadKey A ;#79
- Gosub #This PREV
-
- xRoutine PREV
- --PicNum
- If $PicNum < 0 ; MIN ANTALL
- PicNum = $MAXPicNum
- EndIf
- Update #This 7 $PicTitle ;Venstre
- LVUse #This 5
- LVGo #$PicNum
- PicTitle = $$LV.REC
- CutVar PicTitle CUT CHAR 3 PicName
- Update #This 8 $PicTitle ;Current
- PicAll = $PicDir
- AppVar PicAll $PicName
- PicAllMini = $PicDirMini
- AppVar PicAllMini $PicName
-
- PicNum2 = $($PicNum -1) ; NESTE
- If $PicNum2 < 0 ; Min Antall
- PicNum2 = $MAXPicNum
- EndIf
- LVGo #$PicNum2
- PicTitle3 = $$LV.REC
- CutVar PicTitle3 CUT CHAR 3 PicName3
- Update #This 9 $PicTitle3 ; Høyre
- --TopNum
- If $TopNum < 1 ; OBS *****
- TopNum = $MAXTopNum
- EndIf
- Update #This 12 $TopNum ; Oppdater NummerTeller ******
-
- freeimage SmallPic2
- loadimage $PicAllMini SmallPic2 NOREMAP
- ChangeImage Nosferatu 10 -1 -1 SmallPic2
-
-
-
- ;------------
-
- XAREA 400 379 82 68 COMP ; - Next Pic -
- GadKey S
- Gosub #This NEXT
-
- xRoutine NEXT
- ++PicNum
- If $PicNum > $MAXPicNum ; MAX ANTALL
- PicNum = 0
- EndIf
- Update #This 9 $PicTitle ;Høyre
- LVUse #This 5
- LVGo #$PicNum
- PicTitle = $$LV.REC
- CutVar PicTitle CUT CHAR 3 PicName
- Update #This 8 $PicTitle
- PicAll = $PicDir
- AppVar PicAll $PicName
- PicAllMini = $PicDirMini
- AppVar PicAllMini $PicName
-
- PicNum2 = $($PicNum +1) ; NESTE
- If $PicNum2 > $MAXPicNum ; Max Antall (LV)
- PicNum2 = 0
- EndIf
- LVGo #$PicNum2
- PicTitle2 = $$LV.REC
- CutVar PicTitle2 CUT CHAR 3 PicName2
- Update #This 7 $PicTitle2
-
- ++TopNum
- If $TopNum > $MAXTopNum ; OBS *****
- TopNum = 1
- EndIf
- Update #This 12 $TopNum ; Oppdater NummerTeller ******
-
- freeimage SmallPic2
- loadimage $PicAllMini SmallPic2 NOREMAP
- ChangeImage Nosferatu 10 -1 -1 SmallPic2
-
-
-
-
-
- XAREA 257 350 126 126 NONE ; - View Pic -
- GadKey W
- Gosub #This ViewPic
-
- xRoutine ViewPic
- CLI 'PPshow >Env:PPresult $PicAll NoMouse'
- PPvar = ""
- ReadVar Env:PPresult 137 200 PPvar
- SearchVar PPvar unable CI FIRST
- If $$SEARCH.POS != ""
- Flash
- ChangeImage Nosferatu 10 -1 -1 PicErr1
- DELAY 100
- ChangeImage Nosferatu 10 -1 -1 SmallPic2
- EndIf
- ;---------
- SearchVar PPvar Out CI FIRST
- If $$SEARCH.POS = ""
- PPvar = ""
- STOP
- Else
- Flash
- ChangeImage Nosferatu 10 -1 -1 PicErr2
- DELAY 100
- ChangeImage Nosferatu 10 -1 -1 SmallPic2
- EndIf
- PPvar = ""
-
-
- ;--------------------
- XAREA 520 371 100 24 COMP ; - Slide Show -
- GadKey E
- Slide = #?
- SlideAll = $PicDir
- AppVar SlideAll $Slide
- ;----- P1 = 120000
-
- If $PictureSet = 1
- And $$MEM.CHIP < 120000
- OR $PictureSet = 2
- And $$MEM.CHIP < 800000
- GuiClose #This
- freeimage RPic
- GuiClosed = 1
- Else
- GuiClosed = 0
- EndIf
-
- ;------
- CD $PicDir
- If $Delay = 1
- CLI 'PPshow >nil: 01. 02. 03. 04. 05. 06. 07. 08. 09. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. NOMOUSE TIME $SSTime $PPloop'
- Else
- CLI 'PPshow >nil: 01. 02. 03. 04. 05. 06. 07. 08. 09. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. NOMOUSE $PPloop'
- EndIf
- CD Nosferatu:
-
- If $GuiClosed = 1
- LoadImage Nosferatu:Greier/Main RPic NOREMAP
- Info Image RPic
- Palette set RPic Nosferatu
- GuiOpen #This
- GuiClosed = 0
- EndIf
-
-
- XAREA 520 401 25 24 COMP ; - Decrease Delay (<) -
- GadKey Z
- --SSTime
- If $SSTime < 0
- SSTime = 299
- Endif
- Update #This 6 $SSTime
-
-
- xTextBox 553 404 33 18 "" "" ; - Show Delay -
- Gadid 6
- ATTR TBSTYLE 3/1/PLAIN/CENTER
- ATTR TBOX 0/0/0/PLAIN/NONE/IN
- GadFont P0T-Prop.font 11 000
-
-
-
- XAREA 595 401 25 24 COMP ; - Increase Delay (>) -
- GadKey X
- ++SSTime
- If $SSTime > 299
- SSTime = 0
- Endif
- Update #This 6 $SSTime
-
-
- ;------- DELAY -------
- image 557 439 LightOn2
- gadid 27
- XAREA 520 431 51 24 COMP ; - Set Delay On/Off -
- GadKey D
-
- If $Delay = 0 ;Slå På DELAY
- SetGad #This 27 SHOW
- PartRedraw #This 557 439 8 8
- Delay = 1
- Else
- SetGad #This 27 HIDE ;Slå Av DELAY
- PartRedraw #This 557 439 8 8
- Delay = 0
- EndIf
-
- ;------- LOOP -------
- image 606 439 LightOn2
- gadid 29
- XAREA 575 431 45 24 COMP ; - Set Loop On/Off -
- GadKey L
- If $Loop = 0 ;Slå På LOOP
- SetGad #This 29 SHOW
- PartRedraw #This 606 439 8 8
- PPloop = LOOP
- Loop = 1
- Else
- SetGad #This 29 HIDE ;Slå Av LOOP
- PartRedraw #This 606 439 8 8
- PPloop = ""
- Loop = 0
- EndIf
-
-
- ;------------------
-
-
-
-
- image 100 377 PlayLight
- gadid 14
- image 100 407 PlayLight
- gadid 15
-
-
- XAREA 20 371 100 24 COMP ; - Play Dizzy Funk -
- GadKey 1
- SetGad #This 14 SHOW
- PartRedraw #This 100 377 13 12
- SetGad #This 15 HIDE
- PartRedraw #This 100 407 13 12
- ;RUN 'Nosferatu:Zet/OMP Nosferatu:Greier/DizzyFunk Quit >nil:'
- If $MusFile = 2
- Launch 1 'Nosferatu:Zet/OMP Nosferatu:Greier/DizzyFunk Quit >env:MusResult1'
- MusFile = 1
- Else
- Launch 1 'Nosferatu:Zet/OMP Nosferatu:Greier/DizzyFunk Quit >env:MusResult2'
- MusFile = 2
- EndIf
- Playing = 1
- Delay 50
-
-
- XAREA 20 401 100 24 COMP ; - Play Deilig? -
- GadKey 2
- SetGad #This 15 SHOW
- PartRedraw #This 100 407 13 12
- SetGad #This 14 HIDE
- PartRedraw #This 100 377 13 12
- ;RUN 'Nosferatu:Zet/OMP Nosferatu:Greier/Deilig Quit >nil:'
- If $MusFile = 2
- Launch 1 'Nosferatu:Zet/OMP Nosferatu:Greier/Deilig Quit >env:MusResult1'
- MusFile = 1
- Else
- Launch 1 'Nosferatu:Zet/OMP Nosferatu:Greier/Deilig Quit >env:MusResult2'
- MusFile = 2
- EndIf
- Playing = 2
- Delay 50
-
- XAREA 20 431 100 24 COMP ; - Stop Music -
- GadKey 3
- SetGad #This 14 HIDE
- PartRedraw #This 100 377 13 12
- SetGad #This 15 HIDE
- PartRedraw #This 100 407 13 12
- RUN 'Nosferatu:Zet/OMP Quit >nil:'
- Playing = 0
-
-
- xOnReturn 1
- If $Playing = 0
- STOP
- EndIf
- MusVar = ""
- If $MusFile = 1
- ReadVar Env:MusResult1 61 100 MusVar ; var 200
- Else
- ReadVar Env:MusResult2 61 100 MusVar ; var 200
- EndIf
-
- SearchVar MusVar memory CI FIRST
- If $$SEARCH.POS != ""
- MusErrImage = PicErr2
- Gosub #This MusicError
- STOP
- EndIf
-
- SearchVar MusVar Error CI FIRST
- If $$SEARCH.POS != ""
- loadimage Nosferatu:Greier/ErrMus MusErr NOREMAP
- MusErrImage = MusErr
- Gosub #This MusicError
- freeimage MusErr
- STOP
- EndIf
-
-
- xRoutine MusicError
- Flash
- ChangeImage Nosferatu 10 -1 -1 $MusErrImage ;PicErr2
- DELAY 100
- ChangeImage Nosferatu 10 -1 -1 SmallPic2
- SetGad #This 14 HIDE
- PartRedraw #This 100 377 13 12
- SetGad #This 15 HIDE
- PartRedraw #This 100 407 13 12
- Playing = 0
- RETURN
-
- ;----
- ;OctaMEDPlayer V6.04 ©1991-1996 by Teijo Kinnunen
- ;Loading...
- ;Load Error: not enough memory available
- ;
- ;----
-
- ;-------- LISTVIEW CHANGE -----------
-
- xOnKey #13
- If $PictureSet = 2
- Gosub #This PicturesOne
- Else
- Gosub #This PicturesTwo
- EndIf
-
-
- xOnKey #R
- If $$RAWKEY.CODE = 79
- gosub #This PREV
- Endif
- If $$RAWKEY.CODE = 78
- gosub #This NEXT
- Endif
- If $$RAWKEY.CODE = 76
- gosub #This ViewPic
- Endif
-
- If $$RAWKEY.CODE = 80
- gosub #This PicturesOne
- Endif
- If $$RAWKEY.CODE = 81
- gosub #This PicturesTwo
- Endif
- If $$RAWKEY.CODE = 89
- ;If $$G4C.LOADED > 1
- GuiQuit #This
- ;Else
- ;QUIT
- ;EndIf
- Endif
-
- xRoutine PicturesOne
- SetGad #This 26 SHOW ;Pictureset2 ON
- PartRedraw #This 357 26 11 11
- SetGad #This 28 HIDE ;Pictureset2 OFF
- PartRedraw #This 357 56 11 11
- PicNum = 0
- TopNum = 1
- PicDir = $*NosferatuBig1
- PicDirMini = $*NosferatuSmall1
- MAXPicNum = 21 ; Maximum LV
- MAXTopNum = 22 ; Maximum Top
- LVchange Ram:Plist1
- PictureSet = 1
- Gosub #This UpdateStuff
-
- xRoutine PicturesTwo
- SetGad #This 26 HIDE ;Pictureset2 OFF
- PartRedraw #This 357 26 11 11
- SetGad #This 28 SHOW ;Pictureset2 ON
- PartRedraw #This 357 56 11 11
- PicNum = 0
- TopNum = 1
- PicDir = $*NosferatuBig2
- PicDirMini = $*NosferatuSmall2
- MAXPicNum = 21 ; Maximum LV
- MAXTopNum = 22 ; Maximum Top
- LVchange Ram:Plist2
- PictureSet = 2
- Gosub #This UpdateStuff
-
-
- xRoutine UpdateStuff
- Update #This 9 "" ; Høyre
- LVUse #This 5
- LVGo #1
- PicTitle = $$LV.REC
- CutVar PicTitle CUT CHAR 3 PicName
- Update #This 7 $PicTitle ;Første
-
- LVUse #This 5
- LVGo #0
- PicTitle = $$LV.REC
- CutVar PicTitle CUT CHAR 3 PicName
- PicAll = $PicDir
- AppVar PicAll $PicName
- PicAllMini = $PicDirMini
- AppVar PicAllMini $PicName
-
- loadimage $PicAllMini SmallPic2 NOREMAP
- ChangeImage Nosferatu 10 -1 -1 SmallPic2
- Update #This 8 $PicTitle
- Update #This 12 1 ; First Picture
- Update #This 13 $MAXTopNum ; MAX Pictures Top
-
- TEXTFILE T:FinalNosQuit
- G4C
- xOnLoad
- If $$G4C.LOADED = 1
- QUIT
- Else
- GuiQuit #This
- EndIf
- ###
-
-
-